package com.hmall.common.client;

import com.hmall.common.dto.PageDTO;
import com.hmall.common.itemPojo.Item;
import com.hmall.common.searchPojo.Search;
import com.hmall.common.searchPojo.SearchVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("itemservice")
//@RequestMapping("")
public interface ItemClient {
    @GetMapping("/item/search/filters")
    public SearchVo selectFilters (@RequestBody Search search);

    @GetMapping("/item/search/list")
    public PageDTO<Item> selectConditional(@RequestBody Search search);
}